package cn.java76.springboot.demo1.dao;

import cn.java76.springboot.demo1.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OMajorMapper {
    public int add(OMajor oMajor);
    public int update(OMajor oMajor);
    public int del(long id);
    public OMajor get(long id);
    public List<OMajor> findname();
    public List<OMajor> find(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("name") String name, @Param("stardate") Date stardate, @Param("enddate") Date enddate);
    public int findTotal(@Param("name") String name, @Param("stardate") Date stardate, @Param("enddate") Date enddate);
}
